<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<link rel="stylesheet" type="text/css" href="<?php echo PUBLIC_URL ?>css/head.css">
        <script src="<?php echo PUBLIC_URL  ?>js/jquery-1.8.3.js"></script>
        <script src="<?php echo PUBLIC_URL  ?>js/login.js"></script>
        <style>
                body {margin:0; padding:0;background:url(<?php echo PUBLIC_URL ?>images/ao/bg.jpg);text-align:center;}
        </style>
	</head>
		
<body>
<div id="ba">
	<div id="background">
        <div style="width:100%; height:10px; background:#AAc619;z-index:1000;"></div>
        <?php if($_SESSION['username']){
                   
        ?>
        <font style="position:absolute;top:18px;z-index:10000;right:1px;cursor:pointer;display:block;font-size:12px;color:#AAC619;">用户：<?php echo $_SESSION['username']; ?>/<a style="text-decoration:none;color:#AAc619; font-size:10px;"href="<?php echo LOGOUT; ?>">退出</a></font>
        <?php }else{ ?>
        
        <img usemap="#mymap" style="position:absolute;top:8px;z-index:100;right:1px;cursor:pointer;border:0px;" id="lo" src="<?php echo PUBLIC_URL ?>images/ao/login-register.bmp"/>
        
        <?php } ?>
         <map name="mymap">
            <area shape="rect" coords="16,1,55,21" href="<?php echo LOGIN; ?>">
            <area shape="rect" coords="69,2,104,24" href="<?php echo REGISTER; ?>">
        </map>
        <div id="site"><!--头start -->
			<div id="header">
				<img id="header-img" src="<?php echo PUBLIC_URL ?>images/ao/banaer.bmp">
				<img id="ad-img"src="<?php echo PUBLIC_URL ?>images/ao/ad-img.jpg">
				<div id="nav-div">
					<ul>
                    <?php
                                if($_GET['type'] == "shou" || isset($type)){
                    ?>
						<li name="dj" style="margin-left:-40px;margin-top:-16px;cursor:pointer;background:#0D7B3B" onclick="homepage()">首页</li>
                    <?php }else{ ?>
                        <li name="dj" style="margin-left:-40px;margin-top:-16px;cursor:pointer;background:#A5C72C" onclick="homepage()">首页</li>
                        <?php } ?>
                        <?php if($_GET['type'] == "step"){?>
						<li  name="dj" style="color:#FFFFFF; cursor:pointer;background:#0D7B3B"onclick="step_ao()">走进傲生</li>
                        <?php }else{ ?>
                        <li  name="dj"  onclick="step_ao()" style="color:#FFFFFF; cursor:pointer;background:#A5C72C">走进傲生</li>
                        <?php } ?>
                        <?php if($_GET['type'] == "pro"){ ?>
						<li  name="dj" onclick="proc()" style="color:#FFFFFF; cursor:pointer;background:#0D7B3B">产品中心</li>
                        <?php }else{ ?>
                        <li  name="dj" onclick="proc()"style="color:#FFFFFF; cursor:pointer;background:#A5C72C">产品中心</li>
                        <?php } ?>
                        <?php if($_GET['type'] == 'lx'){ ?>
						<li name="dj" style="color:#FFFFFF; cursor:pointer;background:#0D7B3B"><font onclick="lxwo()">联系我们</font></li>
                        <?php }else{ ?>
							<li name="dj" style="color:#FFFFFF; cursor:pointer;background:#A5C72C"><font onclick="lxwo()">联系我们</font></li>
                            <?php } ?>
                        <li id="search"  style="float:right;position:relative;top:-1px;left:-0.0%; width:31.5%;cursor:pointer;" onclick="search()" ><font style="margin-left:-50%;">Search</font><img id="search-im" src="<?php echo PUBLIC_URL ?>images/ao/search.bmp"></li>
					</ul>
				</div>
			</div><!--头end -->
        </div>
              <script>
              var ys=null;
              $('li[name=dj]').bind({
                mouseover:function(){
                    ys = $(this).css('background');
                    $(this).css('background','#0D7B3B')
                },
                mouseout:function(){
                    $(this).css('background', ys)
                },
                click:function(){
                    $('li[name=dj]').css('background', '#A5C72C');
                   $(this).css('background', '#0D7B3B');
                }
              });
                
              
            function search()
            {
                window.location.href="<?php echo SEARCH; ?>";
            }
            function homepage()
            {
                window.location.href="<?php echo DOCUMENT.'welcome/index?type=shou'; ?>";
            }
            
            function step_ao()
            {
                window.location.href="<?php echo DOCUMENT.'welcome/step_in_aosheng?type=step'; ?>";
            }
            
             function proc()
            {
                window.location.href="<?php echo DOCUMENT.'welcome/product_center?type=pro'; ?>";
            }
            
            function lxwo(){
                window.location.href="<?php echo DOCUMENT.'welcome/lxwo?type=lx' ?>";
            }
    </script>